<template>
  <div>
    detail   {{product}}
  </div>
</template>
<script>
export default{
  created(){
  this.product= this.$store.state.products.find((item)=>{
    return  item.id===this.$route.params.id
   })
  },
  data(){
    return {
    
      product:{}
    }
  }
}
</script>